﻿using Wicresoft.SMS.Gateway.Host.WEService;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.Xml;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for SMSServiceSoapClientTest and is intended
    ///to contain all SMSServiceSoapClientTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SMSServiceSoapClientTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SMSServiceSoapClient Constructor
        ///</summary>
        [TestMethod()]
        public void SMSServiceSoapClientConstructorTest()
        {
            string endpointConfigurationName = string.Empty; // TODO: Initialize to an appropriate value
            EndpointAddress remoteAddress = null; // TODO: Initialize to an appropriate value
            SMSServiceSoapClient target = new SMSServiceSoapClient(endpointConfigurationName, remoteAddress);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SMSServiceSoapClient Constructor
        ///</summary>
        [TestMethod()]
        public void SMSServiceSoapClientConstructorTest1()
        {
            Binding binding = null; // TODO: Initialize to an appropriate value
            EndpointAddress remoteAddress = null; // TODO: Initialize to an appropriate value
            SMSServiceSoapClient target = new SMSServiceSoapClient(binding, remoteAddress);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SMSServiceSoapClient Constructor
        ///</summary>
        [TestMethod()]
        public void SMSServiceSoapClientConstructorTest2()
        {
            string endpointConfigurationName = string.Empty; // TODO: Initialize to an appropriate value
            string remoteAddress = string.Empty; // TODO: Initialize to an appropriate value
            SMSServiceSoapClient target = new SMSServiceSoapClient(endpointConfigurationName, remoteAddress);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SMSServiceSoapClient Constructor
        ///</summary>
        [TestMethod()]
        public void SMSServiceSoapClientConstructorTest3()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for SMSServiceSoapClient Constructor
        ///</summary>
        [TestMethod()]
        public void SMSServiceSoapClientConstructorTest4()
        {
            string endpointConfigurationName = string.Empty; // TODO: Initialize to an appropriate value
            SMSServiceSoapClient target = new SMSServiceSoapClient(endpointConfigurationName);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CanelSMS
        ///</summary>
        [TestMethod()]
        public void CanelSMSTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            string MessageID = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.CanelSMS(MessageID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QuerySMSState
        ///</summary>
        [TestMethod()]
        public void QuerySMSStateTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            string MessageID = string.Empty; // TODO: Initialize to an appropriate value
            XmlElement expected = null; // TODO: Initialize to an appropriate value
            XmlElement actual;
            actual = target.QuerySMSState(MessageID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QuerySMSUP
        ///</summary>
        [TestMethod()]
        public void QuerySMSUPTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            int MinID = 0; // TODO: Initialize to an appropriate value
            int Count = 0; // TODO: Initialize to an appropriate value
            string TokenID = string.Empty; // TODO: Initialize to an appropriate value
            string externCode = string.Empty; // TODO: Initialize to an appropriate value
            XmlElement expected = null; // TODO: Initialize to an appropriate value
            XmlElement actual;
            actual = target.QuerySMSUP(MinID, Count, TokenID, externCode);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QuerySmsSendRecord
        ///</summary>
        [TestMethod()]
        public void QuerySmsSendRecordTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            DateTime time = new DateTime(); // TODO: Initialize to an appropriate value
            int MinID = 0; // TODO: Initialize to an appropriate value
            string TokenID = string.Empty; // TODO: Initialize to an appropriate value
            XmlElement expected = null; // TODO: Initialize to an appropriate value
            XmlElement actual;
            actual = target.QuerySmsSendRecord(time, MinID, TokenID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for QuerySmsSeqReport
        ///</summary>
        [TestMethod()]
        public void QuerySmsSeqReportTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            int MinID = 0; // TODO: Initialize to an appropriate value
            string TokenID = string.Empty; // TODO: Initialize to an appropriate value
            XmlElement expected = null; // TODO: Initialize to an appropriate value
            XmlElement actual;
            actual = target.QuerySmsSeqReport(MinID, TokenID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SendSMS
        ///</summary>
        [TestMethod()]
        public void SendSMSTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            string mobile = string.Empty; // TODO: Initialize to an appropriate value
            int FormatID = 0; // TODO: Initialize to an appropriate value
            string Content = string.Empty; // TODO: Initialize to an appropriate value
            DateTime ScheduleDate = new DateTime(); // TODO: Initialize to an appropriate value
            string TokenID = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.SendSMS(mobile, FormatID, Content, ScheduleDate, TokenID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SendSMSCovey
        ///</summary>
        [TestMethod()]
        public void SendSMSCoveyTest()
        {
            SMSServiceSoapClient target = new SMSServiceSoapClient(); // TODO: Initialize to an appropriate value
            string XMLStr = string.Empty; // TODO: Initialize to an appropriate value
            string TokenID = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.SendSMSCovey(XMLStr, TokenID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
